<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五子棋游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>五子棋游戏</h1>
        
        <div class="game-info">
            <div class="current-player">
                当前玩家：<span id="currentPlayer" class="player-black">黑子</span>
            </div>
            <div class="game-controls">
                <button id="restartBtn" class="btn">重新开始</button>
                <button id="undoBtn" class="btn" disabled>悔棋</button>
            </div>
        </div>

        <div class="board-container">
            <canvas id="gameBoard" width="600" height="600"></canvas>
        </div>

        <div id="winModal" class="modal">
            <div class="modal-content">
                <h2 id="winMessage"></h2>
                <button id="playAgainBtn" class="btn">再来一局</button>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
